package Users;

import book.BookList;
import operation.IOPearation;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-12-23
 * Time:20:47
 */
 public abstract class User {
        private String name;

        public User(String name) {
                this.name = name;
        }
        protected IOPearation[] ioPearations;
        public abstract int menu();
        public void doOperation(int choice, BookList bookList){
                ioPearations[choice].work(bookList);
        }
}
